package app.sys.model;




public class ResponseObj<T> {
    /**
     * 构造函数
     *
     * @param retCode 返回码
     */
    public ResponseObj(RetCode retCode) {
        this.retCode = retCode;
        this.data = null;
    }

    /**
     * 构造函数
     *
     * @param data    结果
     * @param retCode 返回码
     */
    public ResponseObj(T data, RetCode retCode) {
        this.retCode = retCode;
        this.data = data;
    }

    /**
     *
     * @param msg 提醒信息
     * @param retCode 返回码
     */
    public ResponseObj(T data,String msg,RetCode retCode) {
        retCode.setMsg(msg);
        this.retCode = retCode;
        this.data = data;
    }

    private RetCode retCode;

    private T data;

    public RetCode getRetCode() {
        return retCode;
    }

    public void setRetCode(RetCode retCode) {
        this.retCode = retCode;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
